<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        /*伪类*/

        /*选中所有指定的类型  再找到对应的序号*/
        .list li:nth-of-type(1){
            color: red;
        }
        .list li:first-of-type{
                /*.list li:nth-of-type(1)*/
        }

        .list li:last-of-type{
        }
    
    
    </style>
</head>
<body>
    


    <ul class="list">
        <p>p1p1p1p1p1</p>
        <li>1</li>
        <li>2</li>
        <li>3</li>
        <li>4</li>
        <li>5</li>
        <li>6</li>
    </ul>


</body>
</html>